import {ComputedRef, Ref} from "@vue/reactivity";

export interface IScreenStyle {
  width: string;
  height: string;
  background: string;
  transform: string;
}
export interface IRect {
  startLeft: number;
  startTop: number;
  endLeft: number;
  endTop: number;
}
export interface IUseScreen {
  screenStyle: ComputedRef<IScreenStyle>;
  canvasClick: (e: MouseEvent) => void;
  selectArea: (rect: IRect) => void;
  openOperation:(operConfig: {
    contentMenuX: number;
    // 菜单的top坐标
    contentMenuY: number;
    // 菜单的显示状态
    contentMenu: boolean;
    id: string;
  }) => void;
  oper: Ref<{
    contentMenuX: number;
    // 菜单的top坐标
    contentMenuY: number;
    // 菜单的显示状态
    contentMenu: boolean;
    id: string;
  }>;
}
